<%= form_for(@pm) do |f| %>
  <% if @pm.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@pm.errors.count, "error") %> prohibited this pm from being saved:</h2>

      <ul>
      <% @pm.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :to, "Primatelj:" %><br />
    <%= collection_select( :pm, :to, @members, :id, :full_name) %>

  </div>
  

  <div class="field">
    <%= f.label :title, "Naslov" %><br />
    <%= f.text_field :title, :class => :big  %>
  </div>
  <div class="field">
    <%= f.label :content, "Sadržaj" %><br />
    <%= f.text_area :content, :class => [:big, 'bb-code']  %>
  </div>

  <div class="actions">
    <%= f.submit "Pošalji" %>
  </div>
<% end %>
